package com.zhizhi.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhizhi.entity.User;
import com.zhizhi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhizhi
 * @since 2021-12-23
 */
@Controller
//@RequestMapping("/user")//防止项目重复
public class UserController{
    @Autowired
    private UserService userService;

    @GetMapping("/login")
    public String getByPage(){
        return "admin/login";
    }
}
